
AddComponentPostInit("locomotor", function(LocoMotor)
    if not LocoMotor.inst:HasTag("i26") then return end 

    local oldGetSpeedMultiplier = LocoMotor.GetSpeedMultiplier
    function LocoMotor:GetSpeedMultiplier(...)
        local spdmult = oldGetSpeedMultiplier(self, ...)
        return math.max(.9, spdmult)
    end 
    local oldSetExternalSpeedMultiplier = LocoMotor.SetExternalSpeedMultiplier
    function LocoMotor:SetExternalSpeedMultiplier(source, key, m, ...)
        if m and m < .99 then
            m = .99
        end
        return oldSetExternalSpeedMultiplier(self, source, key, m, ...)
    end
    local oldSetMotorSpeed = LocoMotor.SetMotorSpeed
    function LocoMotor:SetMotorSpeed(speed, ...)
        if speed < TUNING.WILSON_RUN_SPEED then
            speed = TUNING.WILSON_RUN_SPEED
        end
        return oldSetMotorSpeed(self, speed, ...)
    end

end)


